Skip to content

feat: generate qnap charm#768

Open
ahmad-can wants to merge 3 commits intocanonical:mainfrom
ahmad-can:feature/genearte-qnap-charm
Open

feat: generate qnap charm#768
ahmad-can wants to merge 3 commits intocanonical:mainfrom
ahmad-can:feature/genearte-qnap-charm

Conversation

@ahmad-can
Copy link
Copy Markdown

@ahmad-can ahmad-can commented Apr 14, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new QNAP Cinder storage backend implementation to Sunbeam and wires it into the unit-test backend matrix so it’s discovered and validated consistently with existing backends.

Changes:

  • Introduce QnapBackend and QnapConfig (including secret-marked credential fields and protocol validation).
  • Add QNAP-specific unit tests and extend common backend tests to include the new backend.
  • Extend backend test fixtures to provide qnap_backend and include it in the parametrized any_backend fixture.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sunbeam-python/sunbeam/storage/backends/qnap/backend.py Implements the QNAP backend and its Pydantic config model.
sunbeam-python/sunbeam/storage/backends/qnap/__init__.py Adds the QNAP backend package module.
sunbeam-python/tests/unit/sunbeam/storage/backends/test_qnap.py Adds unit tests validating QNAP backend identity, config shape, secret fields, and protocol validation.
sunbeam-python/tests/unit/sunbeam/storage/backends/conftest.py Registers a qnap_backend fixture and adds QNAP to the shared backend parametrization.
sunbeam-python/tests/unit/sunbeam/storage/backends/test_common.py Ensures QNAP participates in backend uniqueness checks and expected-type/charm-name assertions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sunbeam-python/sunbeam/storage/backends/qnap/backend.py Outdated
Comment thread sunbeam-python/sunbeam/storage/backends/qnap/backend.py Outdated
@ahmad-can ahmad-can force-pushed the feature/genearte-qnap-charm branch from 6ecf153 to 96038c7 Compare April 21, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants